import Vue from "vue";
import App from "./App.vue";

//引入Vuex状态管理
import store from "./store";

//引入路由
import router from "./router";

//权限拦截
import "@/permission";

//引入rem设配
import "amfe-flexible";

//按需引入element注册组件
import registerEle from "@/global/register-element";
import "@/style/theme/index.css";
//引入初始化样式
import "@/assets/css/index.scss";

//引入Avue框架
import Avue from "@smallwei/avue";
import "@smallwei/avue/lib/index.css";

import Plugin from "v-fit-columns";

Vue.use(Plugin);

Vue.use(Avue);

//注册全局指令
import * as filters from "@/utils/filters";

Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});

//使用element ui
registerEle();

//引入注册全局组件
import libs from "./components/libs";

Vue.use(libs);
Vue.config.productionTip = false;
//挂载
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
